package poc.echo;

import java.io.Serializable;
import java.text.DateFormat;
import java.util.Currency;
import java.util.Date;

@SuppressWarnings("serial")
public class User implements Serializable {

    private Long id;
    private Date createDate;
    private Date deactivatDate;
    private boolean status = true;
    private String password;
    private String firstName;
    private String middleName;
    private String lastName;
    private Date birthday;

    private String email;
    private String phone;
    private String ssn;
    private String jobTitle;
    private String role;
    private Currency currency;

    private DateFormat dateFormat;
    private Integer age;

    public String getName() {
	if (firstName == null || lastName == null)
	    return "";

	return firstName.substring(0, 1) + lastName;
    }

    public Long getId() {
	return id;
    }

    public void setId(Long id) {
	this.id = id;
    }

    public Date getCreateDate() {
	return createDate;
    }

    public void setCreateDate(Date createDate) {
	this.createDate = createDate;
    }

    public Date getDeactivatDate() {
	return deactivatDate;
    }

    public void setDeactivatDate(Date deactivatDate) {
	this.deactivatDate = deactivatDate;
    }

    public boolean isStatus() {
	return status;
    }

    public void setStatus(boolean status) {
	this.status = status;
    }

    public String getPassword() {
	return password;
    }

    public void setPassword(String password) {
	this.password = password;
    }

    public String getFirstName() {
	return firstName;
    }

    public void setFirstName(String firstName) {
	this.firstName = firstName;
    }

    public String getMiddleName() {
	return middleName;
    }

    public void setMiddleName(String middleName) {
	this.middleName = middleName;
    }

    public String getLastName() {
	return lastName;
    }

    public void setLastName(String lastName) {
	this.lastName = lastName;
    }

    public Date getBirthday() {
	return birthday;
    }

    public void setBirthday(Date birthday) {
	this.birthday = birthday;
    }

    public String getEmail() {
	return email;
    }

    public void setEmail(String email) {
	this.email = email;
    }

    public String getPhone() {
	return phone;
    }

    public void setPhone(String phone) {
	this.phone = phone;
    }

    public String getSsn() {
	return ssn;
    }

    public void setSsn(String ssn) {
	this.ssn = ssn;
    }

    public String getJobTitle() {
	return jobTitle;
    }

    public void setJobTitle(String jobTitle) {
	this.jobTitle = jobTitle;
    }

    public String getRole() {
	return role;
    }

    public void setRole(String role) {
	this.role = role;
    }

    public Currency getCurrency() {
	return currency;
    }

    public void setCurrency(Currency currency) {
	this.currency = currency;
    }

    public DateFormat getDateFormat() {
	return dateFormat;
    }

    public void setDateFormat(DateFormat dateFormat) {
	this.dateFormat = dateFormat;
    }

    public Integer getAge() {
	return age;
    }

    public void setAge(Integer age) {
	this.age = age;
    }

}
